#define _CRT_SECURE_NO_WARNINGS 1
#include "heap.h"


int main()
{
	Heap hp;
	HeapInit(&hp);
	HeapPush(&hp, 15);
	HeapPush(&hp, 28);
	HeapPush(&hp, 35);
	HeapPush(&hp, 24);
	HeapPush(&hp, 27);
	HeapPush(&hp, 16);
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	HeapDestroy(&hp);

	return 0;
}